home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
music
/
omdpt123.lha
/
OMED_PT123.lzx
/
rexx
/
SwapTracks.omed
< prev
next >
Wrap
Text File
|
1979-12-27
|
1KB
|
56 lines
/* Swap Tracks - Case 07-10-95 */
address OCTAMED_REXX
options results
'op_update off'
'ed_getcurrtrack var currtrack'
'ed_getnumtracks var numtracks'
'wi_request "Swap with which track?" "0|1|2|3|4|5|6|7| CANCEL " var desttrack'
if desttrack = 0
then do
'op_update on'
exit
end
else do
desttrack = desttrack - 1
if desttrack = currtrack
then do
'wi_showstring' "That's the one you're on, man ...."
'op_update on'
exit
end
if desttrack > numtracks - 1
then do
'wi_showstring "You gotta CREATE that track first."'
'op_update on'
exit
end
'wi_request "In all blocks?" "Yes|No" var allblocks'
if allblocks = 1
then do
'ed_getnumblocks var numblocks'
do until numblocks = 0
'ed_goto block' numblocks - 1
'rn_cut track'
'ed_goto track' desttrack
'rn_swap track'
'ed_goto track' currtrack
'rn_paste track'
numblocks = numblocks - 1
end
'op_update on'
'wi_showstring SWAPPED'
exit
end
else do
'rn_cut track'
'ed_goto track' desttrack
'rn_swap track'
'ed_goto track' currtrack
'rn_paste track'
end
'op_update on'
'wi_showstring SWAPPED'
exit